package com.sg.dto.biz.framework.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class DelOrgGradeScopeDto extends BaseDto implements Serializable {

    /**
     * 岗位等级别名:
     */
    @ApiModelProperty("岗位等级别名")
    private String stationGradeAlias;

    /**
     * 岗位等级ID:
     */
    @ApiModelProperty("岗位等级ID")
    private String stationGradeId;

    /**
     * 等级范围关系ID:
     */
    @ApiModelProperty("等级范围关系ID")
    private String gradeScopeId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DelOrgGradeScopeDto that = (DelOrgGradeScopeDto) o;
        return stationGradeAlias == that.stationGradeAlias && stationGradeId == that.stationGradeId && gradeScopeId == that.gradeScopeId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), stationGradeAlias, stationGradeId, gradeScopeId);
    }

}
